<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 1.准备一个具备宽高的dom容器 -->
    <div class="box" style="width: 600px;height: 400px;"></div>

    <!-- 2.引入echarts -->
    <script src="./lib/echarts.min.js"></script>

    <script>

        //3.初始化echarts实例
        const myChart = echarts.init(document.querySelector('.box'))

        // 4.准备配置项option

        // 5.基于配置项显示图表
        myChart.setOption(option)

    </script>
</body>

</html>